<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <img src="" alt="">
    <script>
        const image = document.querySelector('img')
        const randomNum = Math.floor(Math.random()*7)
        image.src = `./images/${randomNum}.webp`
    </script>
</body>
</html>